<template>
	<view class="uni-content">
		<text>{{ i18n.invite }}</text>
		<text>{{ i18n.game }}</text>
		<button @tap="change">切换语言</button>
	</view>
</template>

<script>
export default {
	computed: {
		i18n() {
			return this.$t('index');
		}
	},
	methods:{
		change(){
			this._i18n.locale='US'
		}
	},
	onShow() {
		uni.setStorageSync('yu','CN')
		this._i18n.locale=uni.getStorageSync('yu')
	}
};
</script>

<style></style>
